package com.andy.note.boot.config.mail;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import cn.hutool.extra.mail.MailAccount;


/**
 * 
 * 
 *
 * @author Andy<908119428@qq.com>
 * @version $Revision: 1.1 $ $Date: 2021年6月30日 下午4:42:43 $
 */
@Configuration
public class MailData {

    @Bean
    public MailAccount account() {
        MailAccount account = new MailAccount();
        account.setHost("smtp.163.com");
        account.setPort(465);
        account.setAuth(true);
        account.setSslEnable(true);
        account.setStarttlsEnable(true);
        account.setFrom("andychau2015@163.com");
        account.setUser("andychau2015");
        account.setPass("Ab123456");
        return account;
    }

}
